-
Notifications
You must be signed in to change notification settings - Fork 139
Add docs on clever errors #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| > change due to any changes in the source file (e.g., due to auto-formatting, adding a new module | ||
| > member, or adding a newline). | ||
|
|
||
| ## Clever Abort Codes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a link to a matching page in the book/?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have one in the book/ (at least not yet) so not really anything to reference here unless I'm misunderstanding something.
|
|
||
| ## Assertions with no Abort Codes | ||
|
|
||
| Assertions, and `abort` statements without an abort code will automatically derive an abort code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Assertions, and `abort` statements without an abort code will automatically derive an abort code | |
| Assertions and `abort` statements without an abort code will automatically derive an abort code |
|
|
||
| // Print the constant name (if any) | ||
| if identifier_index != 0xffff { | ||
| let constant_name = get_identifier_at_table_index(module, identifier_index); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_identifier_at_table_index
I appreciate this is pseudo code, but do we have a method for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do, but its name is not quite as descriptive as I would like here (identifier_at). I'll try and make it a bit closer, but I think having a more descriptive name here will be beneficial.
Adds docs on clever errors.